#ifndef PONG_H
#define PONG_H
#include "Publisher.h"
#include "Subscriber.h"
#include "Messages.pb.h"


  class Pong
  {
    public:
      Pong();
      virtual ~Pong();
    private: //methods
      class MsgReader : public Subscriber::DataReaderTemplate<fsk::msg::Message01>
      {

        public:
          MsgReader(Pong& obj);

        private:
          void handle(fsk::msg::Message01& msg);
          Pong& obj_;
      };

      void sendResponse(fsk::msg::Message01& msg);

    private: //attributes
      Publisher pub_;
      Subscriber sub_;
      MsgReader reader_;
  };
#endif
